package com.qidi.ssh.dao;

import com.qidi.ssh.bean.BaseDict;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import java.util.List;

/**
 * @author zhouXinBin
 * @create 2020-10-17-13:30
 */
public class BaseDictDaoimpl  extends BaseDaoimpl<BaseDict> implements BaseDictDao {

    public BaseDictDaoimpl() {
        super(BaseDict.class);
    }

    @Override
    public List<BaseDict> findByTypeCode(String code) {
        List<BaseDict> list = (List<BaseDict>) this.getHibernateTemplate().find("from BaseDict where dict_type_code=?", code);
        return list;
    }
}
